package com.ease.concurrent.thread.local;

/**
 * @author: chenhs
 * @date: Created in 15:12 2020/3/15
 **/
public class ThreadLocalTest2 {

    private static ThreadLocal<String> threadLocal = new ThreadLocal<String>(){
        @Override
        protected String initialValue() {
            return "初始值";
        }
    };

    public static void main(String[] args) {
        System.out.println(threadLocal.get());
    }
}
